/**
 * 懒汉单例模式示例
 * @author MIAO
 * Created on 2011-11-28
 * For more information, please visit:ismiao.com
 */
package com.ismiao.designPattern.Singleton;
public class SingletonSynchronized {
	// Private constructor suppresses, default public constructor
    private SingletonSynchronized() {}
	private static SingletonSynchronized instance = null;
	public static synchronized SingletonSynchronized getInstance(){
		if (instance == null)
			instance = new SingletonSynchronized();
		return instance;
	}
}